// 导入封装的请求实例
import request from '@/utils/request'
// 用户数据
export const getYddUserListApi = params => {
  return request({
    url: '/admin/ydd_user/list',
    method: 'get',
    params
  })
}
// 查询单个
export const getYddUserInfoApi = params => {
  // params 提交的是 { id:142}
  return request({
    url: '/admin/ydd_user/rowInfo',
    method: 'get',
    params
  })
}

// 添加
export const addYddUserInfoApi = data => {
  return request({
    url: '/admin/ydd_user/add',
    method: 'post',
    data
  })
}
// 修改
export const updateYddUserInfoApi = data => {
  return request({
    url: '/admin/ydd_user/update',
    method: 'post',
    data
  })
}
// 删除
// /admin/ydd_advpos/update
//  { id:142}
export const delYddUserInfoApi = params => {
  return request({
    url: '/admin/ydd_user/del',
    method: 'get',
    params
  })
}
// 上传
export const uplodeAdvImgInfoApi = data => {
  return request({
    url: '/admin/common/upload?type=images',
    method: 'post',
    data
  })
}
